﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace 窗口依附测试
{
    public partial class FrmB : Form
    {
        public FrmB()
        {
            InitializeComponent();
        }

        private void FrmB_Load(object sender, EventArgs e)
        {
            //tabControl1.SelectedIndex = 0;
            FrmC frmC = new FrmC();
            //panel1.Parent = frmC;
            frmC.TopLevel = false;
            frmC.Parent = panel1;
            frmC.WindowState = FormWindowState.Maximized;
            frmC.Show();

            FrmD frmD = new FrmD();
            //panel1.Parent = frmD;
            frmD.TopLevel = false;
            frmD.Parent = panel2;
            frmD.WindowState = FormWindowState.Maximized;
            frmD.Show();

        }
    }
}
